package com.cuckoo.cuckoo_app2.dao;

import androidx.annotation.NonNull;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;
import java.io.StreamCorruptedException;
import java.util.Date;

import org.greenrobot.greendao.annotation.Generated;

/**
 * 用户信息
 */
@Entity
public class User {
    // ID
    @Id
    private String id;
    // 头像
    private String imgUrl;
    // 名称
    private String name;
    // 手机号
    private String phone;
    // 密码
    private String password;
    // 是否VIP
    private Integer isVip;
    // 注册时间
    private Date addTime;
    // vip结束时间
    private Date endVip;
    // token
    private String token;
    @Generated(hash = 661949342)
    public User(String id, String imgUrl, String name, String phone,
            String password, Integer isVip, Date addTime, Date endVip,
            String token) {
        this.id = id;
        this.imgUrl = imgUrl;
        this.name = name;
        this.phone = phone;
        this.password = password;
        this.isVip = isVip;
        this.addTime = addTime;
        this.endVip = endVip;
        this.token = token;
    }
    @Generated(hash = 586692638)
    public User() {
    }
    public String getId() {
        return this.id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getImgUrl() {
        return this.imgUrl;
    }
    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPhone() {
        return this.phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getPassword() {
        return this.password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public Integer getIsVip() {
        return this.isVip;
    }
    public void setIsVip(Integer isVip) {
        this.isVip = isVip;
    }
    public Date getAddTime() {
        return this.addTime;
    }
    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }
    public Date getEndVip() {
        return this.endVip;
    }
    public void setEndVip(Date endVip) {
        this.endVip = endVip;
    }
    public String getToken() {
        return this.token;
    }
    public void setToken(String token) {
        this.token = token;
    }


    
}
